<?php include('includes/header.php'); ?>
<?php include('includes/nav.php');    ?>

<div id="content">
<?php
include ("includes/userfunctions.php");
if (!isset ($_POST["username"]))
{
   showUserList(INQUSERSUBMITTEXT, INQUIREFUNCTION);
}
else
{
   if (isset ($_POST["fullname"]))
   {
      deleteUserFromDB();
      $errmsg = userDeleted;
      showUserForm(INQUSERSUBMITTEXT, INQUIREFUNCTION);
   }
   else
   {
      showUserForm(INQUSERSUBMITTEXT, INQUIREFUNCTION);
   }
}
?>
</div> <!-- end #content -->
<?php include('includes/sidebar.php'); ?>
<?php include('includes/footer.php');  ?>